package com.bus.core.entity;

import com.bus.core.common.Comment;
import com.bus.core.common.KeyValueDescSuper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;


/**
 * 系统参数表
 * 1. 用来存储一些系统参数
 * 2. 分为系统级,系统自动创建无法修改
 * 自定义,接口创建可以更改(必填或者非必填,系统校验)
 *
 * @author bom
 * @date 2021-12-31
 */
@Entity
@Table(name = "c_sys_param", uniqueConstraints = {
        @UniqueConstraint(columnNames = "key")
})
@EqualsAndHashCode(callSuper = true)
@Data
@Comment("系统参数表")
public class SysParamEntity extends KeyValueDescSuper {
    @Id
    @Comment("id")
    private String id;
    @Comment("是否系统级参数")
    private Boolean isSys;
}
